/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package flight.server;

import middleware.Callback;
import middleware.Naming;

/**
 *
 * @author tam
 */
public class FlightClientProxy implements Callback{
    String myIp;
    Naming naming;
    public FlightClientProxy(String ip, Naming n){
        myIp = ip;
        naming = n;
    }
    public void informSeatUpdate(int newSeatNo) {

        Object[] params  = new Object[1];
        params[0] =newSeatNo;
        naming.send(myIp, "informSeatUpdate", params);
    }

    public Object invoke(String methodName, Object[] parameters) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String getIp() {
        return myIp;
    }

}
